Add pre-settings (must_upper,short_name_length) for Garmin Quest.
authoroliskoli <oliskoli@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Sun, 30 Apr 2006 16:46:03 +0000 (16:46 +0000)
committeroliskoli <oliskoli@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Sun, 30 Apr 2006 16:46:03 +0000 (16:46 +0000)
Bring in (currently disabled) calls for Garmin specific data.

gpsbabel/garmin.c

index c72269f013248dbe78528a6200979d5159d70426..5129ecad23c04f8ecc364b1eccea1dcf32fc7c43 100644 (file)
@@ -24,6 +24,7 @@
 #include "defs.h"
 #include "jeeps/gps.h"
 #include "garmin_tables.h"
+#include "garmin_fs.h"
 
 #define MYNAME "GARMIN" 
 static const char *portname;
@@ -143,6 +144,8 @@ rw_init(const char *fname)
                                        receiver_charset = CET_CHARSET_MS_ANSI;
                                        break;
                                case 231: /* Quest */
+                                       receiver_must_upper = 0;
+                                       receiver_short_length = 30;
                                        receiver_charset = CET_CHARSET_MS_ANSI;
                                        break;
                                case 260: /* GPSMap 296 */
@@ -266,7 +269,9 @@ waypt_read(void)
                if (way[i]->time_populated) {
                        wpt_tmp->creation_time = way[i]->time;
                }
-               
+#if 0
+               garmin_fs_garmin_after_read(way[i], wpt_tmp, gps_waypt_type);
+#endif         
                waypt_add(wpt_tmp);
                GPS_Way_Del(&way[i]);
        }
@@ -555,6 +560,9 @@ waypoint_write(void)
                        way[i]->time = wpt->creation_time;
                        way[i]->time_populated = 1;
                }
+#if 0
+               garmin_fs_garmin_before_write(wpt, way[i], gps_waypt_type);
+#endif
                i++;
        }